package company;

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

public interface CompanyHome extends EJBLocalHome {
	
	public Company create(String name, String address, String phone, String email, String cityName, String countryName, String sectorName) throws CreateException;
	public Collection<Company> findAllCompanies() throws FinderException;
	public Company findByPrimaryKey(int id) throws FinderException;
	public Company findByName(String name) throws FinderException;
	
}
